package com.fengxu.springcloud;

import com.fengxu.myrule.MySelfRule;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.cloud.netflix.ribbon.RibbonClient;

@SpringBootApplication
@EnableEurekaClient
/**
 * 自定义要使用的负载均衡规则
 * name: 要使用自定义负载均衡规则的服务名
 * configuration: 实现了IRle接口的自定义规则实现类
 */
// @RibbonClient(name = "CLOUD-PAYMENT-SERVICE",configuration = MySelfRule.class)
public class CloudConsumerOrder80 {

    public static void main(String[] args) {
        SpringApplication.run(CloudConsumerOrder80.class,args);
    }
}
